import request from '@/utils/request'

// 查询所有权限组列表
export function getList() {
    return request.get('/base/salesSupport/group/selectAll')
}
// 所有菜单列表
export function selecMenuAll() {
    return request.get('/base/salesSupport/group/menus/selectAll')
}


//查找权限组成员
export function getMembersListId(id) {
    return request.get(`/base/salesSupport/group/members/${id}`)
}

//保存权限组成员
export function setMembersSave(form = {}) {
    return request.post(`/base/salesSupport/group/members/save`, form)
}
//保存权限组成员
export function setMenuSave(form = {}) {
    return request.post(`/base/salesSupport/group/menus/save`, form)
}

//删除权限组
export function setMembersDelete(id) {
    return request.delete(`/base/salesSupport/group/${id}`)
}

